package com.mmd.base.pojo.vo;

import com.mmd.core.enums.LoginEnum;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.*;
import lombok.experimental.SuperBuilder;

@Getter
@Setter
@NoArgsConstructor
@SuperBuilder
@ApiModel("登录返回信息")
public class TokenVO<T> {
    @ApiModelProperty("用户id")
    private Long id;
    @ApiModelProperty("客户端类型")
    private LoginEnum loginEnum;
    @ApiModelProperty("令牌")
    private String authorization;
    @ApiModelProperty("用户名")
    private String username;
    @ApiModelProperty("im账号")
    private String imUsername;
    @ApiModelProperty("昵称")
    private String nickname;
    @ApiModelProperty("头像")
    private String avatarUrl;
    @ApiModelProperty("邮箱")
    private String email;
    @ApiModelProperty("其他信息")
    private T other;
    @ApiModelProperty(value = "0未实名1已实名")
    private Integer isAuthentication;
    @ApiModelProperty("userSig")
    private String userSig;
    @ApiModelProperty("是否新人")
    private Integer isNewUser;

}
